package com.kang.feign;

import com.kang.util.WebResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "base-admin")
public interface AdminFeign {

    @GetMapping(value = "/admin/label/getLabelByType")
    public WebResponse getLabelByType(@RequestParam("type") Integer type);

    @GetMapping("/admin/folder/getFolderShow")
    public WebResponse getFolderShow();

    @GetMapping("/admin/notify/getNotifyShow")
    public WebResponse getNotifyShow();

    @GetMapping("/admin/notify/getNotifyById")
    public WebResponse getNotifyById(@RequestParam("id") Integer id);
}
